<?php

namespace app\model\distributor;

use app\model\user\User;
use crmeb\basic\BaseModel;
use crmeb\traits\ModelTrait;

class DistributorApplication extends BaseModel
{
    use ModelTrait;

    /**
     * 模型名称
     * @var string
     */
    protected $name = 'distributor_application';

    // 定义与ZgUser模型的belongsTo关联
    public function user()
    {
        return $this->belongsTo(User::class, 'uid', 'uid');
    }

}